package com.hs.srm.admin.modules.pricemanagement.entity;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import cn.afterturn.easypoi.excel.annotation.Excel;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * @author yanfei
 * @date 2019年7月26日
 */
@Setter
@Getter
@TableName("historical_price")
@ToString
public class HistoricalPriceEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public HistoricalPriceEntity() {
        super();
    }

    /*
     * 历史价格id
     */
    @TableId(value = "historical_price_id", type = IdType.UUID)
    @TableField("historical_price_id")
    @Excel(name = "历史价格id", orderNum = "1")
    private java.lang.String historicalPriceId;

    /*
     * 供应商编码
     */
    @TableField("vendor_code")
    @Excel(name = "供应商编码", orderNum = "2")
    private java.lang.String vendorCode;

    /*
     * 供应商名称
     */
    @TableField("vendor_name")
    @Excel(name = "供应商名称", orderNum = "3")
    private java.lang.String vendorName;

    /*
     * 单价
     */
    @TableField("price")
    @Excel(name = "单价", orderNum = "4")
    private java.math.BigDecimal price;

    /*
     * 价格单位
     */
    @TableField("price_unit")
    @Excel(name = "价格单位", orderNum = "5")
    private java.lang.String priceUnit;

    /*
     * 订单价格单位(采购)
     */
    @TableField("po_price_unit")
    @Excel(name = "订单价格单位(采购)", orderNum = "6")
    private java.lang.String poPriceUnit;

    /*
     * 销售/购买税代码
     */
    @TableField("tax_code")
    @Excel(name = "销售/购买税代码", orderNum = "7")
    private java.lang.String taxCode;

    /*
     * 创建者
     */
    @TableField("created_by")
    @Excel(name = "创建者", orderNum = "8")
    private java.lang.String createdBy;

    /*
     * 删除标识
     */
    @TableField("delete_flag")
    @Excel(name = "删除标识", orderNum = "9")
    private java.lang.Integer deleteFlag;

    /*
     * 回复交期
     */
    @TableField("reply_delivery_date")
    @Excel(name = "回复交期", orderNum = "10")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date replyDeliveryDate;

    /*
     * 状态：-1 报价单草稿, 0 已报价,1 报价单已提交,2 报价单审核中,3.审核通过,-3审核驳回
     */
    @TableField("state_")
    @Excel(name = "状态：-1 报价单草稿, 0 已报价,1 报价单已提交,2 报价单审核中,3.审核通过,-3审核驳回", orderNum = "11")
    private java.lang.Integer state;

    /*
     * 采购申请编码
     */
    @TableField("request_code")
    @Excel(name = "采购申请编码", orderNum = "12")
    private java.lang.String requestCode;

    /*
     * 采购申请行项目的pkid
     */
    @TableField("npk_id")
    @Excel(name = "采购申请行项目的pkid", orderNum = "13")
    private java.lang.String npkId;

    /*
     * 币种
     */
    @TableField("currency")
    @Excel(name = "币种", orderNum = "14")
    private java.lang.String currency;

    /*
     * 工厂
     */
    @TableField("werks")
    @Excel(name = "工厂", orderNum = "15")
    private java.lang.String werks;

    /*
     * 物料编码
     */
    @TableField("material_code")
    @Excel(name = "物料编码", orderNum = "16")
    private java.lang.String materialCode;

    /*
     * 物料描述
     */
    @TableField("material_desc")
    @Excel(name = "物料描述", orderNum = "17")
    private java.lang.String materialDesc;

    /*
     * 采购组织
     */
    @TableField("purchase_org")
    @Excel(name = "采购组织", orderNum = "18")
    private java.lang.String purchaseOrg;

    /*
     * 物料组
     */
    @TableField("purchase_grp")
    @Excel(name = "物料组", orderNum = "19")
    private java.lang.String purchaseGrp;

    /*
     * 备注
     */
    @TableField("remark")
    @Excel(name = "备注", orderNum = "20")
    private java.lang.String remark;

    /*
     * 创建时间
     */
    @TableField("created_date")
    @Excel(name = "创建时间", orderNum = "21")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date createdDate;

    /*
     * 采购申请行项目号
     */
    @TableField("item_no")
    @Excel(name = "采购申请行项目号", orderNum = "22")
    private java.lang.String itemNo;

    /**
     * 付款条件
     */
    @TableField(exist = false)
    private java.lang.String payCondition;

    /**
     * 临时供应商代码
     */
    @TableField(exist = false)
    private java.lang.String srmCode;

}
